import {
  DISCOUNT_TYPE,
  DISCOUNT_TYPE_TEXT,
} from "@src/sp-reservation/constant/index.js";

Component({
  properties: {
    list: {
      type: Array,
      value: [],
    },
    selectTimesCardNo: {
      type: [String, Number],
      value: 0,
    },
  },
  data: {
    DISCOUNT_TYPE,
    DISCOUNT_TYPE_TEXT,
  },
  observers: {},
  ready() {},
  methods: {
    //开关弹窗
    handleClose() {
      this.triggerEvent("close");
    },
    handleSelectCou(e) {
      const {
        currentTarget: {
          dataset: { selectitem },
        },
      } = e;
      this.triggerEvent("select", selectitem);
    },
  },
});
